package com.example.layui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Tanyuehao
 * @create 2017-12-12 14:09
 **/
@RequestMapping("/authority")
@Controller
public class AuthorityController {
    /**
     * 角色管理
     *
     * @return
     */
    @RequestMapping("toAuthority")
    public String toAuthority() {
        return "authority/role";
    }

    /**
     * 用户角色管理
     */
    @RequestMapping("toUserRole")
    public String toUserRole() {
        return "authority/userrole";
    }

    /**
     * 用户角色权限分配
     *
     * @return
     */
    @RequestMapping("toAllocate")
    public String toAllocate() {
//        return "layout/toallocate";
        return "authority/toallocate";
    }
}
